using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._3DFeatures
{
    /// <summary>
    /// <para>Enclose Multipatch</para>
    /// <para>Creates  closed multipatch features from open multipatch features.</para>
    /// <para>从打开的多面体要素创建闭合的多面体要素。</para>
    /// </summary>    
    [DisplayName("Enclose Multipatch")]
    public class EncloseMultiPatch : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public EncloseMultiPatch()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Multipatch Features</para>
        /// <para>The multipatch features that will be used to construct closed multipatches.</para>
        /// <para>将用于构造闭合多面体的多面体特征。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Multipatch Feature Class</para>
        /// <para>The output closed multipatch features.</para>
        /// <para>输出闭合的多面体功能。</para>
        /// </param>
        public EncloseMultiPatch(object _in_features, object _out_feature_class)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Enclose Multipatch";

        public override string CallName => "3d.EncloseMultiPatch";

        public override List<string> AcceptEnvironments => ["XYDomain", "XYResolution", "ZDomain", "ZResolution", "autoCommit", "extent", "geographicTransformations", "outputCoordinateSystem", "workspace"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _grid_size];

        /// <summary>
        /// <para>Input Multipatch Features</para>
        /// <para>The multipatch features that will be used to construct closed multipatches.</para>
        /// <para>将用于构造闭合多面体的多面体特征。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Multipatch Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Multipatch Feature Class</para>
        /// <para>The output closed multipatch features.</para>
        /// <para>输出闭合的多面体功能。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Multipatch Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Grid Size</para>
        /// <para>The resolution that will be used to construct the closed multipatch features. This value is defined using the linear units of the input feature's spatial reference.</para>
        /// <para>将用于构建闭合多面体要素的分辨率。此值使用输入要素空间参考的线性单位进行定义。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Grid Size")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _grid_size { get; set; } = 0.15;


        public EncloseMultiPatch SetEnv(object XYDomain = null, object XYResolution = null, object ZDomain = null, object ZResolution = null, int? autoCommit = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, XYResolution: XYResolution, ZDomain: ZDomain, ZResolution: ZResolution, autoCommit: autoCommit, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, workspace: workspace);
            return this;
        }

    }

}